<template>
  <div class="solutions-page">
    <!-- 页面标题 -->
    <div class="page-banner">
      <div class="container">
        <h1 class="page-title">解决方案</h1>
        <div class="page-breadcrumb">
          <router-link to="/">首页</router-link> > 解决方案
        </div>
      </div>
    </div>

    <!-- 内容区 -->
    <div class="page-content">
      <div class="container">
        <div class="content-layout">
          <!-- 侧边栏 -->
          <div class="sidebar">
            <ul class="sidebar-menu">
              <li class="sidebar-item">
                <router-link to="/solutions/digital-twin" class="sidebar-link" active-class="active">数字孪生与云网数脑</router-link>
              </li>
              <li class="sidebar-item">
                <router-link to="/solutions/urban-transport" class="sidebar-link" active-class="active">城市交通政策规划及综合治理</router-link>
              </li>
              <li class="sidebar-item">
                <router-link to="/solutions/major-project" class="sidebar-link" active-class="active">重大工程设计与新基建</router-link>
              </li>
              <li class="sidebar-item">
                <router-link to="/solutions/infrastructure" class="sidebar-link" active-class="active">基础设施监检测与运维</router-link>
              </li>
              <li class="sidebar-item">
                <router-link to="/solutions/digital-city" class="sidebar-link" active-class="active">数字化城市管理与运营服务</router-link>
              </li>
            </ul>
          </div>
          <!-- 主内容 -->
          <div class="main-content">
            <router-view></router-view>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: 'SolutionsPage'
}
</script>

<style scoped>
.solutions-page {
  padding-bottom: 50px;
}

.page-banner {
  background: url('https://picsum.photos/1920/250?random=24') no-repeat center center;
  background-size: cover;
  height: 250px;
  display: flex;
  align-items: center;
  position: relative;
}

.page-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

.page-title {
  color: #fff;
  font-size: 36px;
  position: relative;
  z-index: 2;
}

.page-breadcrumb {
  color: #fff;
  margin-top: 10px;
  position: relative;
  z-index: 2;
}

.page-breadcrumb a {
  color: #fff;
}

.page-content {
  margin-top: 30px;
}

.content-layout {
  display: flex;
  gap: 30px;
}

.sidebar {
  width: 280px;
  flex-shrink: 0;
}

.sidebar-menu {
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.sidebar-item {
  border-bottom: 1px solid var(--border-color);
}

.sidebar-item:last-child {
  border-bottom: none;
}

.sidebar-link {
  padding: 15px 20px;
  display: block;
  color: var(--text-color);
  font-size: 16px;
  transition: all 0.3s;
}

.sidebar-link:hover,
.sidebar-link.active {
  color: #fff;
  background-color: var(--primary-color);
}

.main-content {
  flex: 1;
  background-color: #fff;
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

@media (max-width: 992px) {
  .page-banner {
    height: 200px;
  }
  
  .page-title {
    font-size: 30px;
  }
  
  .sidebar {
    width: 250px;
  }
  
  .sidebar-link {
    padding: 12px 15px;
    font-size: 15px;
  }
  
  .main-content {
    padding: 20px;
  }
}

@media (max-width: 768px) {
  .content-layout {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    margin-bottom: 20px;
  }
  
  .page-banner {
    height: 180px;
  }
  
  .page-title {
    font-size: 26px;
  }
}

@media (max-width: 480px) {
  .page-banner {
    height: 150px;
  }
  
  .page-title {
    font-size: 22px;
  }
  
  .main-content {
    padding: 15px;
  }
  
  .sidebar-link {
    padding: 10px 15px;
    font-size: 14px;
  }
}
</style> 